package 学生管理;

import java.util.Scanner;

public class yemian {

    Scanner scanner=new Scanner(System.in);
    XiTong xitong = new XiTong();

    public static void main(String[] args) {
        yemian yemian = new yemian();
        yemian.info();
    }
    public void info(){
        while (true) {
            System.out.println("选择(1、录入;)");
            System.out.println("(0、退出;)");
            int choice = scanner.nextInt();
            if (choice == 1) {
                xitong.add();
            } else if (choice == 0) {
                xitong.print();
                scanner.close();
                break;



             }
        }
    }
}
